package controllers;

import models.sample.SampleModel;
import play.*;
import play.i18n.Lang;
import play.mvc.*;

import java.util.*;

import models.*;

public class Application extends Controller {

    public static void index() {
        Lang.change(Lang.get());
        render();
    }

    public static void setLang(String lang) {
        String[] langsArray = Play.configuration.getProperty("application.langs").split(",");
        if (!Arrays.asList(langsArray).contains(lang)) {
            return;
        }
        Lang.change(lang);
    }


}